package com.example.system.model;


import com.example.system.enums.ItemType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
/*
*商品类
 */
@NoArgsConstructor
@Data
public class Item {
    private String id;//商品id
    private String name;//商品名称
    private double price;//商品价格
    private ItemType type;//商品类别

    //构造函数
    public Item(String id,String name,double price,ItemType type){
        this.id = id;
        this.name = name;
        this.price = price;
        this.type = type;
    }

}
